﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class TopicInfoConfig : EntityTypeConfiguration<TopicInfo>
    {
        public TopicInfoConfig()
        {
            ToTable("Himall_Topics");
            Property(item => item.Name).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.FrontCoverImage).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.TopImage).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.BackgroundImage).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Tags).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.SelfDefineText).HasColumnType("text");
        }
    }
}
